package com.example.springboot_zc.controller;

import com.example.springboot_zc.pojo.Mine;
import com.example.springboot_zc.service.mineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/mine")
public class mineController {

    @Autowired
    mineService mineService;

    @GetMapping("/select")
    public List<Mine> getAll(){return mineService.list();}
}
